import { notification } from 'antd';
export default {

    namespace: 'prop',
    state: {
        title: '',
        currentProps: []
    },
    reducers: {
        setCurrent(state, { payload: props }) {
            return { ...state, currentProps:props};
        }
    },
    effects: {
        *updateCurrentProps({ payload: values}, { call, put, select }) {
            yield put({
                type: 'setCurrent',
                payload: values
            });
        }
    }
}